#include"string.h"







int main()
{
	zhz::string a;
	zhz::string b("hello world");
	/*std::cout << a.c_str() << std::endl;
	std::cout << b.c_str() << std::endl;

	for (int i = 0; i < b.size(); i++)
	{
		b[i]++;
	}


	for (int i = 0; i < b.size(); i++)
	{
		std::cout << b[i] << " ";
	}
	std::cout << std::endl;




	zhz::string::iterator st = b.begin();
	while (st != b.end())
	{
		(*st)--;
		st++;

	}

	st = b.begin();
	while (st != b.end())
	{
		std::cout << *st << " ";
		st++;

	}

	std::cout << std::endl;


	for (auto& ch : b)
	{
		ch++;
	}


	for (auto ch : b)
	{
		std::cout << ch;
	}
	cout << endl;*/

	//b.push_back('a');

	//b += "yes";
	//b += 'a';
	//b.insert(0, "aaa");
	//b.erase(0);


	zhz::string tmp = b.substr(0, 5);
	//cout << tmp.c_str()<<endl;



	/*zhz::string c;
	c = b;

	cout << c.c_str() << endl;
	cout<<(a == b)<<endl;
	cout << (a!= b) << endl;
	cout << (a >= b) << endl;
	cout << (a <= b) << endl;
	cout << (a < b) << endl;
	cout << (a > b) << endl;*/

	//cin >> b;
	//getline(cin, b, 'w');

	//swap(a, b);
	
	
	//int found = b.find("yyy");
	//cout << found;

	tmp.resize(20, 'n');
	for (auto ch : tmp)
	{
		std::cout << ch;
	}
	cout << endl; 





	return 0;
}


